package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;

public class Privilege {

    @Id
    @Column
    private int userId;

    @Column
    private boolean problemEditor;

    @Column
    private boolean sourceBrowser;

    @Column
    private boolean contestCreator;

    @Column
    private boolean passwordSetter;

    @Column
    private boolean privilegeManager;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public boolean isProblemEditor() {
        return problemEditor;
    }

    public void setProblemEditor(boolean problemEditor) {
        this.problemEditor = problemEditor;
    }

    public boolean isSourceBrowser() {
        return sourceBrowser;
    }

    public void setSourceBrowser(boolean sourceBrowser) {
        this.sourceBrowser = sourceBrowser;
    }

    public boolean isContestCreator() {
        return contestCreator;
    }

    public void setContestCreator(boolean contestCreator) {
        this.contestCreator = contestCreator;
    }

    public boolean isPasswordSetter() {
        return passwordSetter;
    }

    public void setPasswordSetter(boolean passwordSetter) {
        this.passwordSetter = passwordSetter;
    }

    public boolean isPrivilegeManager() {
        return privilegeManager;
    }

    public void setPrivilegeManager(boolean privilegeManager) {
        this.privilegeManager = privilegeManager;
    }
}
